// 物资发放
import request from "@/utils/request.js";


//查询
export function listGrantsManage (params){
  return request({
    url: `/system/materials/list`,
    method: 'get',
    params
  })
}
//修改
export function editGrantsManage (data){
  return request({
    url: `/system/materials`,
    method: 'put',
    data
  })
}

//新增
export function addGrantsManage (data){
  return request({
    url: `/system/materials`,
    method: 'post',
    data
  })
}
//删除
export function deleteGrantsManage (ids){
  return request({
    url: `/system/materials/${ids}`,
    method: 'delete',
  })
}
//详情
export function detailGrantsManage (id){
  return request({
    url: `/system/materials/${id}`,
    method: 'get'
  })
}
//下发接口
export function sendGrantsManage (data){
  return request({
    url: `/system/materials/issue`,
    method: 'post',
    data
  })
}
